package com.dating.activity;

import com.dating.entities.Me;
import com.dating.pref.Pref;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.Window;

public class Main extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
//        setContentView(R.layout.main);
        
        Dating.ME=Me.getInstance(Dating.ME);
        
        Dating.ME=Dating.ME.restoreFromDb(this);
        if(Dating.ME._email.contains("@")){
        	//load auth + usid from preference
        	Pref.setEmail(this, Dating.ME._email);
        }
        
        startActivity(new Intent(this,Logo.class));
        finish();
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }

    
}
